package com.fangcang.redis.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.fangcang.redis.RedisService;

import redis.clients.jedis.JedisCluster;

//@Service("redisClusterService")
public class RedisClusterServiceImpl  implements RedisService{

	@Autowired
	private JedisCluster jedisCluster;

	@Override
	public void getRedis() {
		int i =0;
		while(i < 10) {
			jedisCluster.set("key" + i,  "value" + i);
			i++;
		}
	}

	@Override
	public void setBigDataToRedis() {
		
	}
	
	
}
